import { createStore } from 'vuex'

export default createStore({
  state: {
    isLogin: false,
    comList: [],
    importantCom:0,
    totalCom: 0,
  },
  getters: {
  },
  mutations: {
    getList: (state, data) => {
      state.comList = data
    },
    getImportantCom: (state, data) => {
      state.importantCom = data
    },
    getTotalCom: (state, data) => {
      state.totalCom = data
    }
  },
  actions: {
  },
  modules: {
  }
})
